/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/** *****************************************************************************************************
 * \file     Icu_Irq.h                                                                                  *
 * \brief    his file mainly contains the definition of etimer interrupt handler                        *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date           <th>Version                                                                   *
 * <tr><td>2023/08/18     <td>1.0.0                               *
 * </table>                                                                                             *
 *******************************************************************************************************/
#ifndef ICU_IRQ_H
#define ICU_IRQ_H

#ifdef __cplusplus
extern "C" {
#endif

/********************************************************************************************************
 *                                      Include header files                                            *
 *******************************************************************************************************/
/* icu data types file */
#include "Icu_Types.h"
/* mcal types file */
#include "Mcal.h"

/********************************************************************************************************
 *                                         Function definition                                          *
 *******************************************************************************************************/

/** *****************************************************************************************************
 * \brief etimer1 interrupt handler
 *
 * \verbatim
 * Syntax             : void Icu_Irq1_Handle(void)
 *
 * Service ID[hex]    : None
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : None
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : The setting result
 *
 * Description        : etimer1 interrupt handler
 * \endverbatim
 * Traceability       : SWSR_ICU_036
 *******************************************************************************************************/
ISR(Icu_Irq1_Handle);

/** *****************************************************************************************************
 * \brief etimer2 interrupt handler
 *
 * \verbatim
 * Syntax             : void Icu_Irq2_Handle(void)
 *
 * Service ID[hex]    : None
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : None
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : The setting result
 *
 * Description        : etimer2 interrupt handler
 * \endverbatim
 * Traceability       : SWSR_ICU_036
 *******************************************************************************************************/
ISR(Icu_Irq2_Handle);

#if defined(E3650)
/** *****************************************************************************************************
 * \brief etimer3 interrupt handler
 *
 * \verbatim
 * Syntax             : void Icu_Irq3_Handle(void)
 *
 * Service ID[hex]    : None
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : None
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : The setting result
 *
 * Description        : etimer3 interrupt handler
 * \endverbatim
 * Traceability       : SWSR_ICU_036
 *******************************************************************************************************/
ISR(Icu_Irq3_Handle);

/** *****************************************************************************************************
 * \brief etimer4 interrupt handler
 *
 * \verbatim
 * Syntax             : void Icu_Irq4_Handle(void)
 *
 * Service ID[hex]    : None
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : None
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : The setting result
 *
 * Description        : etimer4 interrupt handler
 * \endverbatim
 * Traceability       : SWSR_ICU_036
 *******************************************************************************************************/
ISR(Icu_Irq4_Handle);
#endif /* E3650 */

/** *****************************************************************************************************
 * \brief etimer1 interrupt handler
 *
 * \verbatim
 * Syntax             : void Icu_XtrgIrq1_Handle(void)
 *
 * Service ID[hex]    : None
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : None
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : The setting result
 *
 * Description        : xtrg1 capture interrupt handler
 * \endverbatim
 * Traceability       : SWSR_ICU_036
 *******************************************************************************************************/
ISR(Icu_XtrgIrq1_Handle);

/** *****************************************************************************************************
 * \brief etimer1 interrupt handler
 *
 * \verbatim
 * Syntax             : void Icu_XtrgIrq1_Handle(void)
 *
 * Service ID[hex]    : None
 *
 * Sync/Async         : Synchronous
 *
 * Reentrancy         : None
 *
 * Parameters (in)    : None
 *
 * Parameters (inout) : None
 *
 * Parameters (out)   : None
 *
 * Return value       : The setting result
 *
 * Description        : xtrg1 capture interrupt handler
 * \endverbatim
 * Traceability       : SWSR_ICU_036
 *******************************************************************************************************/
ISR(Icu_XtrgIrq2_Handle);


#ifdef __cplusplus
}
#endif

#endif /* ICU_IRQ_H */
/* End of file */
